<?
	$pageSize = 8;
	$pageNum = 1;
    if (isset($_GET['pageNum'])==true) $pageNum = $_GET['pageNum'];
	$totalRows = 0;
	$chitiet=$t->laytintucphantrang($pageNum,$pageSize,$totalRows);
?>
<div class="center">
<div class="title_center">
	<span style="float:left;margin-left:55px;">Tin tức</span>
</div>
<div class="content_center">
	<div class="noidung_content">
    	<? while($row_chitiet=mysql_fetch_assoc($chitiet)){?>	
        	<div style="width:524px;float:left;margin:5px 0px;border-bottom:1px dotted #01637f">
            	<div class="bong_center" style="float:left;padding:3px;">
                	<img src="<? if($row_chitiet['url_img']=='') echo "images/noimage.png"; else echo $row_chitiet['url_img']?>" width="100" />
                </div>
                <div style="width:400px;float:left;margin-left:5px;">
                	<a href="<?=$rooturl?>tin-tuc-chi-tiet/<?=$row_chitiet['id']?>/<?=$t->changeTitle($row_chitiet['ten_'.$lang])?>.html">
                    	<span style="color:#01637f;font-weight:bold;"><?=$row_chitiet['ten_'.$lang]?></span>
                    </a>
                </div>
            </div>
        <? }?>
    </div>
</div>
<div class="bo_center">
</div>
</div>
<div class="showpageArea">
        <?php echo $t->pagesList1($rootURL.'tin-tuc.html',$totalRows,$pageNum,$pageSize,5); ?>
</div>